import {del, get, post, put} from '@/api/http'
import type {
	IAgreementHelperPost,
	IAgreementHelperPut,
	IArticleListGet,
	IArticlePost,
	IArticlePut,
	IBannerListGet,
	IBannerPost,
	IBannerPut,
	ICommonCaptchaImageGet,
	IInfoGet,
	ILoginPost,
	ILogoutPost,
	IMallGoodsCategoryListGet,
	IMallGoodsCategoryPost,
	IMallGoodsCategoryPut,
	IMallGoodsCategoryTagPost,
	IMallGoodsCategoryTagPut,
	IMallGoodsDelistPost,
	IMallGoodsListGet,
	IMallGoodsListingPost,
	IMallGoodsPost,
	IMallGoodsPut,
	IMallIntegralDelistPost,
	IMallIntegralGoodsCategoryListGet,
	IMallIntegralGoodsCategoryPut,
	IMallIntegralGoodsCategoryTagPost,
	IMallIntegralGoodsCategoryTagPut,
	IMallIntegralListGet,
	IMallIntegralListingPost,
	IMallIntegralPost,
	IMallIntegralPut,
	IMenuListGet,
	IMenuPost,
	IMenuPut,
	IMenusGet,
	IOrderAfterSaleListGet,
	IOrderChatListGet,
	IOrderCommentListGet,
	IOrderConfirmDeliveryPost,
	IOrderConfirmRefundPost,
	IOrderDetailGet,
	IOrderForceRefundPost,
	IOrderListGet,
	IOrderRefusalRefundPost,
	IOrderTicketListGet,
	IPublishMallGoodsCategoryListGet,
	IPublishMallIntegralGoodsCategoryListGet,
	IPublishShopGoodsCategoryListGet,
	IPublishUploadFilePostFormData,
	IRoleListAllGet,
	IRoleListGet,
	IRolePermsPut,
	IRolePost,
	IRolePut,
	IRuleAgreementListGet,
	IRuleHelperListGet,
	IRuleHelperPost,
	IRuleHelperPut,
	IShopGoodsAuditPost,
	IShopGoodsCategoryListGet,
	IShopGoodsCategoryPost,
	IShopGoodsCategoryPut,
	IShopGoodsCategoryTagPost,
	IShopGoodsCategoryTagPut,
	IShopGoodsListGet,
	IShopGoodsShowPost,
	ISystemMessageDetailGet,
	ISystemMessageListGet,
	ISystemMessagePost,
	ISystemMessagePut,
	ISysuserListGet,
	ISysuserPost,
	ISysuserPut,
	ISysuserResetPwdPut,
	IUpdatePwdPut,
	IUserAuditSwitchPost,
	IUserAuthAuditListGet,
	IUserAuthAuditPost,
	IUserAuthRepealPut,
	IUserAuthUnRepealPut,
	IUserBalanceDetailGet,
	IUserBalanceGet,
	IUserListGet,
	IUserMarginPost,
	IUserUpdateStatusPost,
	IWikiListGet,
	IWikiPost,
	IWikiPut,
	IWithdrawAuditPost,
	IWithdrawListGet,
	IWithdrawTransferImagePost,
    ITenantPost,
    ITenantPut,
    ITenantListGet,
    IProductPost,
    IProductPut,
    IProductListGet,
    IProductStatusPut,
    IComplaintListGet,
    IProcessComplaintPut,
    ISysParamPost,
    ISysParamGet,
    IProductApplyListGet,
    IProductApplyImportantLevelPut,
} from '@/typed/request'
import type {
	OAgreementHelperPost,
	OAgreementHelperPut,
	OArticleIdDelete,
	OArticleIdGet,
	OArticleListGet,
	OArticlePost,
	OArticlePut,
	OBannerIdDelete,
	OBannerIdGet,
	OBannerListGetItem,
	OCommonCaptchaImageGet,
	OInfoGet,
	OInfoGetUser,
	OLoginPost,
	OMallGoodsCategoryIdDelete,
	OMallGoodsCategoryListIdGet,
	OMallGoodsCategoryPost,
	OMallGoodsCategoryPut,
	OMallGoodsCategoryTagIdDelete,
	OMallGoodsCategoryTagPost,
	OMallGoodsCategoryTagPut,
	OMallGoodsDelistPost,
	OMallGoodsIdDelete,
	OMallGoodsIdGet,
	OMallGoodsListGet,
	OMallGoodsListingPost,
	OMallGoodsPost,
	OMallGoodsPut,
	OMallIntegralDelistPost,
	OMallIntegralGoodsCategoryIdDelete,
	OMallIntegralGoodsCategoryListGet,
	OMallIntegralGoodsCategoryListIdGet,
	OMallIntegralGoodsCategoryPut,
	OMallIntegralGoodsCategoryTagIdDelete,
	OMallIntegralGoodsCategoryTagPost,
	OMallIntegralGoodsCategoryTagPut,
	OMallIntegralIdDelete,
	OMallIntegralIdGet,
	OMallIntegralListGet,
	OMallIntegralListingPost,
	OMallIntegralPost,
	OMallIntegralPut,
	OMenuListGetItem,
	OMenuMenuIdDelete,
	OMenuMenuIdGet,
	OMenusGetItem,
	OOrderAfterSaleListGetItem,
	OOrderChatListGet,
	OOrderCommentCommentIdDelete,
	OOrderCommentListGetItem,
	OOrderConfirmDeliveryPost,
	OOrderConfirmRefundPost,
	OOrderDetailGet,
	OOrderForceRefundPost,
	OOrderListGetItem,
	OOrderRefusalRefundPost,
	OOrderTicketListGet,
	OPublishMallGoodsCategoryListGet,
	OPublishMallGoodsCategoryListIdGet,
	OPublishMallIntegralGoodsCategoryListGet,
	OPublishMallIntegralGoodsCategoryListIdGet,
	OPublishShopGoodsCategoryIdGet,
	OPublishShopGoodsCategoryListGetItem,
	OPublishUploadFilePost,
	ORoleListAllGetItem,
	ORoleListGetItem,
	ORolePost,
	ORoleRoleIdDelete,
	ORoleRoleIdGet,
	ORoleRoleIdGetMenuList,
	ORuleAgreementIdDelete,
	ORuleAgreementIdGet,
	ORuleAgreementListGet,
	ORuleHelperIdDelete,
	ORuleHelperIdGet,
	ORuleHelperListGet,
	ORuleHelperPost,
	ORuleHelperPut,
	OShopGoodsCategoryIdGet,
	OShopGoodsCategoryIdGetCategoryList,
	OShopGoodsCategoryListGetItem,
	OShopGoodsIdGet,
	OShopGoodsListGetItem,
	OSysParamPost,
	OSystemMessageDetailGet,
	OSystemMessageIdDelete,
	OSystemMessageListGetItem,
	OSystemMessagePut,
	OSysuserListGetItem,
	OSysuserUserIdGet,
	OSysuserUserIdGetRoles,
	OUpdatePwdPut,
	OUserAuthAuditIdGet,
	OUserAuthAuditListGetItem,
	OUserAuthRepealPut,
	OUserAuthUnRepealPut,
	OUserBalanceDetailGetItem,
	OUserBalanceGet,
	OUserIdGet,
	OUserIdGetUserMargin,
	OUserListGetItem,
	OUserMarginPost,
	OWikiIdDelete,
	OWikiListGet,
	OWikiListIdGet,
	OWikiPost,
	OWikiPut,
	OWithdrawAuditPost,
	OWithdrawListGetItem,
	OWithdrawListIdGet,
	OWithdrawTransferImagePost,
    OTenantListGetItem,
    OTenantUserIdGet,
    OProductListGetItem,
    OProductIdGet,
    OComplaintListGetItem,
    OSysParamPost,
    OProductApplyListGetItem
} from '@/typed/response'
/**
 * @description 添加协议 buildFnGetOrPostCode
 *
 * @param {string} params.content 必填: 内容
 * @param {string} params.key 必填: key值
 * @param {number} params.status 必填: 状态 0-启用 1-禁用
 * @param {string} params.title 必填: 标题
 * @return Promise<OAgreementHelperPost>
 */
export const agreementHelperPost = async (params?: IAgreementHelperPost) => {
	return post<OAgreementHelperPost>(`/agreement/helper`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 修改协议 buildFnGetOrPostCode
 *
 * @param {string} params.content 必填: 内容
 * @param {number} params.id 必填: id
 * @param {number} params.status 必填: 状态 0-启用 1-禁用
 * @param {string} params.title 必填: 标题
 * @return Promise<OAgreementHelperPut>
 */
export const agreementHelperPut = async (params?: IAgreementHelperPut) => {
	return put<OAgreementHelperPut>(`/agreement/helper`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 删除宠物文章 buildFnPathCode
 * @path {number} id 必填:
 * @return Promise<OArticleIdDelete>
 */
export const articleIdDelete = async (id: number) => {
	return del<OArticleIdDelete>(`/article/${id}`)
}
/**
 * @description 获取宠物文章详情 buildFnPathCode
 * @path {number} id 必填:
 * @return Promise<OArticleIdGet>
 */
export const articleIdGet = async (id: number) => {
	return get<OArticleIdGet>(`/article/${id}`)
}
/**
 * @description 获取宠物文章列表 buildFnGetOrPostCode
 *
 * @param {string} params.title 可选:
 * @param {number} params.pageNum 可选:
 * @param {number} params.pageSize 可选:
 * @return Promise<OArticleListGet>
 */
export const articleListGet = async (params?: IArticleListGet) => {
	return get<OArticleListGet>(`/article/list`, {
		params
	})
}
/**
 * @description 添加宠物文章 buildFnGetOrPostCode
 *
 * @param {string} params.area 可选: 地区
 * @param {string} params.categoryId 必填: 一级分类ID
 * @param {string} params.categoryTagId 必填: 二级分类ID
 * @param {string} params.content 必填: 内容
 * @param {string} params.headImg 必填: 图像
 * @param {string} params.publishTime 可选: 发布时间
 * @param {number} params.status 必填: 状态 0-启用 1-停用
 * @param {string} params.title 必填: 标题
 * @return Promise<OArticlePost>
 */
export const articlePost = async (params?: IArticlePost) => {
	return post<OArticlePost>(`/article`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 修改宠物文章 buildFnGetOrPostCode
 *
 * @param {string} params.area 可选: 地区
 * @param {string} params.categoryId 必填: 一级分类ID
 * @param {string} params.categoryTagId 必填: 二级分类ID
 * @param {string} params.content 必填: 内容
 * @param {string} params.headImg 必填: 图像
 * @param {number} params.id 必填: 文章ID
 * @param {string} params.publishTime 可选: 发布时间
 * @param {number} params.status 必填: 状态 0-启用 1-停用
 * @param {string} params.title 必填: 标题
 * @return Promise<OArticlePut>
 */
export const articlePut = async (params?: IArticlePut) => {
	return put<OArticlePut>(`/article`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 删除banner buildFnPathCode
 * @path {number} id 必填:
 * @return Promise<OBannerIdDelete>
 */
export const bannerIdDelete = async (id: number) => {
	return del<OBannerIdDelete>(`/banner/${id}`)
}
/**
 * @description banner详情 buildFnPathCode
 * @path {number} id 必填:
 * @return Promise<OBannerIdGet>
 */
export const bannerIdGet = async (id: number) => {
	return get<OBannerIdGet>(`/banner/${id}`)
}
/**
 * @description banner列表 buildFnArrayCode
 *
 * @param {string} params.name 可选: 名字
 * @param {string} params.position 可选: 位置
 * @param {number} params.pageNum 可选:
 * @param {number} params.pageSize 可选:
 * @return Promise<OBannerListGetItem[]>
 */
export const bannerListGet = async (params?: IBannerListGet) => {
	return get<OBannerListGetItem[]>(`/banner/list`, {
		params
	})
}
/**
 * @description 添加banner buildFnGetOrPostCode
 *
 * @param {string} params.content 可选: 内容描述
 * @param {string} params.imgurl 必填: 图像
 * @param {string} params.jumpUrl 可选: 跳转地址
 * @param {string} params.name 必填: 名称
 * @param {string} params.position 必填: 位置 HOME
 * @param {number} params.seqno 必填: 排序
 * @param {number} params.status 必填: 0-启用 1-停用
 * @return Promise<number>
 */
export const bannerPost = async (params?: IBannerPost) => {
	return post<number>(`/banner`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 编辑banner buildFnGetOrPostCode
 *
 * @param {string} params.content 可选: 内容描述
 * @param {number} params.id 必填:
 * @param {string} params.imgurl 必填: 图像
 * @param {string} params.jumpUrl 可选: 跳转地址
 * @param {string} params.name 必填: 名称
 * @param {string} params.position 必填: 位置
 * @param {number} params.seqno 必填: 排序
 * @param {number} params.status 必填: 0-启用 1-停用
 * @return Promise<number>
 */
export const bannerPut = async (params?: IBannerPut) => {
	return put<number>(`/banner`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 获取验证码 buildFnGetOrPostCode
 *
 * @return Promise<OCommonCaptchaImageGet>
 */
export const commonCaptchaImageGet = async (params?: ICommonCaptchaImageGet) => {
	return get<OCommonCaptchaImageGet>(`/common/captchaImage`, {
		params
	})
}
/**
 * @description 获取用户信息 buildFnGetOrPostCode
 *
 * @return Promise<OInfoGet>
 */
export const infoGet = async (params?: IInfoGet) => {
	return get<OInfoGet>(`/info`, {
		params
	})
}
/**
 * @description 登录 buildFnGetOrPostCode
 *
 * @param {string} params.code 必填: 图像验证码code
 * @param {string} params.loginName 必填: 用户名
 * @param {string} params.password 必填: 密码
 * @param {string} params.uuid 必填: 图像验证码uuid
 * @return Promise<OLoginPost>
 */
export const loginPost = async (params?: ILoginPost) => {
	return post<OLoginPost>(`/login`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 登出 buildFnGetOrPostCode
 *
 * @return Promise<number>
 */
export const logoutPost = async (params?: ILogoutPost) => {
	return post<number>(`/logout`, {
		params
	})
}
/**
 * @description 删除一级分类 buildFnPathCode
 * @path {string} id 必填:
 * @return Promise<OMallGoodsCategoryIdDelete>
 */
export const mallGoodsCategoryIdDelete = async (id: string) => {
	return del<OMallGoodsCategoryIdDelete>(`/mall/goods/category/${id}`)
}
/**
 * @description 一级分类列表 buildFnGetOrPostCode
 *
 * @return Promise<any[]>
 */
export const mallGoodsCategoryListGet = async (params?: IMallGoodsCategoryListGet) => {
	return get<any[]>(`/mall/goods/category/list`, {
		params
	})
}
/**
 * @description 一级分类详情 buildFnPathCode
 * @path {string} id 必填:
 * @return Promise<OMallGoodsCategoryListIdGet>
 */
export const mallGoodsCategoryListIdGet = async (id: string) => {
	return get<OMallGoodsCategoryListIdGet>(`/mall/goods/category/list/${id}`)
}
/**
 * @description 添加一级分类 buildFnGetOrPostCode
 *
 * @param {string} params.desc 可选: 描述
 * @param {string} params.headImg 必填: 图像
 * @param {string} params.name 必填: 名称
 * @param {number} params.seqno 可选: 排序
 * @param {number} params.status 必填: 状态 0 启用 1 停用
 * @return Promise<OMallGoodsCategoryPost>
 */
export const mallGoodsCategoryPost = async (params?: IMallGoodsCategoryPost) => {
	return post<OMallGoodsCategoryPost>(`/mall/goods/category`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 编辑一级分类 buildFnGetOrPostCode
 *
 * @param {string} params.desc 可选: 描述
 * @param {string} params.headImg 必填: 图像
 * @param {string} params.id 必填: 主键ID
 * @param {string} params.name 必填: 名称
 * @param {number} params.seqno 可选: 排序
 * @param {number} params.status 必填: 状态 0 启用 1 停用
 * @return Promise<OMallGoodsCategoryPut>
 */
export const mallGoodsCategoryPut = async (params?: IMallGoodsCategoryPut) => {
	return put<OMallGoodsCategoryPut>(`/mall/goods/category`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 删除二级分类 buildFnPathCode
 * @path {string} id 必填:
 * @return Promise<OMallGoodsCategoryTagIdDelete>
 */
export const mallGoodsCategoryTagIdDelete = async (id: string) => {
	return del<OMallGoodsCategoryTagIdDelete>(`/mall/goods/category/tag/${id}`)
}
/**
 * @description 添加二级分类 buildFnGetOrPostCode
 *
 * @param {string} params.categoryId 必填: 一级分类ID
 * @param {string} params.desc 可选: 描述
 * @param {string} params.headImg 必填: 图像
 * @param {string} params.name 必填: 名称
 * @param {number} params.seqno 可选: 排序
 * @param {number} params.status 必填: 状态 0 启用 1 停用
 * @return Promise<OMallGoodsCategoryTagPost>
 */
export const mallGoodsCategoryTagPost = async (params?: IMallGoodsCategoryTagPost) => {
	return post<OMallGoodsCategoryTagPost>(`/mall/goods/category/tag`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 编辑二级分类 buildFnGetOrPostCode
 *
 * @param {string} params.desc 可选: 描述
 * @param {string} params.headImg 必填: 图像
 * @param {string} params.id 必填: 主键ID
 * @param {string} params.name 必填: 名称
 * @param {number} params.seqno 可选: 排序
 * @param {number} params.status 必填: 状态 0 启用 1 停用
 * @return Promise<OMallGoodsCategoryTagPut>
 */
export const mallGoodsCategoryTagPut = async (params?: IMallGoodsCategoryTagPut) => {
	return put<OMallGoodsCategoryTagPut>(`/mall/goods/category/tag`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 下架商品 buildFnGetOrPostCode
 *
 * @param {string} params.id 必填: 商品ID
 * @return Promise<OMallGoodsDelistPost>
 */
export const mallGoodsDelistPost = async (params?: IMallGoodsDelistPost) => {
	return post<OMallGoodsDelistPost>(`/mall/goods/delist`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 删除商品 buildFnPathCode
 * @path {string} id 必填:
 * @return Promise<OMallGoodsIdDelete>
 */
export const mallGoodsIdDelete = async (id: string) => {
	return del<OMallGoodsIdDelete>(`/mall/goods/${id}`)
}
/**
 * @description 获取商品详情 buildFnPathCode
 * @path {string} id 必填:
 * @return Promise<OMallGoodsIdGet>
 */
export const mallGoodsIdGet = async (id: string) => {
	return get<OMallGoodsIdGet>(`/mall/goods/${id}`)
}
/**
 * @description 获取商品列表 buildFnGetOrPostCode
 *
 * @param {string} params.categoryId 可选: 一级分类ID
 * @param {string} params.categoryTagId 可选: 二级分类ID
 * @param {string} params.name 可选: 名称
 * @param {number} params.pageNum 可选:
 * @param {number} params.pageSize 可选:
 * @return Promise<OMallGoodsListGet>
 */
export const mallGoodsListGet = async (params?: IMallGoodsListGet) => {
	return get<OMallGoodsListGet>(`/mall/goods/list`, {
		params
	})
}
/**
 * @description 上架商品 buildFnGetOrPostCode
 *
 * @param {string} params.id 必填: 商品ID
 * @return Promise<OMallGoodsListingPost>
 */
export const mallGoodsListingPost = async (params?: IMallGoodsListingPost) => {
	return post<OMallGoodsListingPost>(`/mall/goods/listing`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 添加商品 buildFnGetOrPostCode
 *
 * @param {string} params.categoryId 必填: 一级分类ID
 * @param {string} params.categoryTagId 必填: 二级分类ID
 * @param {string} params.desc 必填: 商品描述信息
 * @param {any[]} params.detailImg 必填: 图片
 * @param {number} params.limitPrice 必填: 积分价格
 * @param {string} params.name 必填: 名称
 * @param {number} params.postFee 必填: 运费
 * @param {number} params.seqno 必填: 排序
 * @param {number} params.totalAmount 必填:
 * @return Promise<OMallGoodsPost>
 */
export const mallGoodsPost = async (params?: IMallGoodsPost) => {
	return post<OMallGoodsPost>(`/mall/goods`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 编辑商品 buildFnGetOrPostCode
 *
 * @param {string} params.categoryId 必填: 一级分类ID
 * @param {string} params.categoryTagId 必填: 二级分类ID
 * @param {string} params.content 必填: 商品描述信息
 * @param {any[]} params.detailImg 必填: 图片
 * @param {string} params.id 必填: 商品ID
 * @param {number} params.limitPrice 必填: 价格
 * @param {string} params.name 必填: 名称
 * @param {number} params.postFee 必填: 运费
 * @param {number} params.seqno 必填: 排序
 * @param {string} params.totalAmount 必填:
 * @return Promise<OMallGoodsPut>
 */
export const mallGoodsPut = async (params?: IMallGoodsPut) => {
	return put<OMallGoodsPut>(`/mall/goods`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 下架商品 buildFnGetOrPostCode
 *
 * @param {string} params.id 必填: 商品ID
 * @return Promise<OMallIntegralDelistPost>
 */
export const mallIntegralDelistPost = async (params?: IMallIntegralDelistPost) => {
	return post<OMallIntegralDelistPost>(`/mall/integral/delist`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 删除一级分类 buildFnPathCode
 * @path {string} id 必填:
 * @return Promise<OMallIntegralGoodsCategoryIdDelete>
 */
export const mallIntegralGoodsCategoryIdDelete = async (id: string) => {
	return del<OMallIntegralGoodsCategoryIdDelete>(`/mall/integral/goods/category/${id}`)
}
/**
 * @description 一级分类列表 buildFnGetOrPostCode
 *
 * @return Promise<OMallIntegralGoodsCategoryListGet>
 */
export const mallIntegralGoodsCategoryListGet = async (params?: IMallIntegralGoodsCategoryListGet) => {
	return get<OMallIntegralGoodsCategoryListGet>(`/mall/integral/goods/category/list`, {
		params
	})
}
/**
 * @description 一级分类详情 buildFnPathCode
 * @path {string} id 必填:
 * @return Promise<OMallIntegralGoodsCategoryListIdGet>
 */
export const mallIntegralGoodsCategoryListIdGet = async (id: string) => {
	return get<OMallIntegralGoodsCategoryListIdGet>(`/mall/integral/goods/category/list/${id}`)
}
/**
 * @description 编辑一级分类 buildFnGetOrPostCode
 *
 * @param {string} params.desc 可选: 描述
 * @param {string} params.headImg 必填: 图像
 * @param {string} params.id 必填: 主键ID
 * @param {string} params.name 必填: 名称
 * @param {number} params.seqno 可选: 排序
 * @param {number} params.status 必填: 状态 0 启用 1 停用
 * @return Promise<OMallIntegralGoodsCategoryPut>
 */
export const mallIntegralGoodsCategoryPut = async (params?: IMallIntegralGoodsCategoryPut) => {
	return put<OMallIntegralGoodsCategoryPut>(`/mall/integral/goods/category`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 删除二级分类 buildFnPathCode
 * @path {string} id 必填:
 * @return Promise<OMallIntegralGoodsCategoryTagIdDelete>
 */
export const mallIntegralGoodsCategoryTagIdDelete = async (id: string) => {
	return del<OMallIntegralGoodsCategoryTagIdDelete>(`/mall/integral/goods/category/tag/${id}`)
}
/**
 * @description 添加一级分类 buildFnGetOrPostCode
 *
 * @param {string} params.desc 可选: 描述
 * @param {string} params.headImg 必填: 图像
 * @param {string} params.name 必填: 名称
 * @param {number} params.seqno 可选: 排序
 * @param {number} params.status 必填: 状态 0 启用 1 停用
 * @return Promise<OMallIntegralGoodsCategoryTagPost>
 */
export const mallIntegralGoodsCategoryTagPost = async (params?: IMallIntegralGoodsCategoryTagPost) => {
	return post<OMallIntegralGoodsCategoryTagPost>(`/mall/integral/goods/category/tag`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 编辑二级分类 buildFnGetOrPostCode
 *
 * @param {string} params.desc 可选: 描述
 * @param {string} params.headImg 必填: 图像
 * @param {string} params.id 必填: 主键ID
 * @param {string} params.name 必填: 名称
 * @param {number} params.seqno 可选: 排序
 * @param {number} params.status 必填: 状态 0 启用 1 停用
 * @return Promise<OMallIntegralGoodsCategoryTagPut>
 */
export const mallIntegralGoodsCategoryTagPut = async (params?: IMallIntegralGoodsCategoryTagPut) => {
	return put<OMallIntegralGoodsCategoryTagPut>(`/mall/integral/goods/category/tag`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 删除商品 buildFnPathCode
 * @path {string} id 必填:
 * @return Promise<OMallIntegralIdDelete>
 */
export const mallIntegralIdDelete = async (id: string) => {
	return del<OMallIntegralIdDelete>(`/mall/integral/${id}`)
}
/**
 * @description 获取商品详情 buildFnPathCode
 * @path {string} id 必填:
 * @return Promise<OMallIntegralIdGet>
 */
export const mallIntegralIdGet = async (id: string) => {
	return get<OMallIntegralIdGet>(`/mall/integral/${id}`)
}
/**
 * @description 获取商品列表 buildFnGetOrPostCode
 *
 * @param {string} params.categoryId 可选: 一级分类ID
 * @param {string} params.categoryTagId 可选: 二级分类ID
 * @param {string} params.name 可选: 名称
 * @param {number} params.pageNum 可选:
 * @param {number} params.pageSize 可选:
 * @return Promise<OMallIntegralListGet>
 */
export const mallIntegralListGet = async (params?: IMallIntegralListGet) => {
	return get<OMallIntegralListGet>(`/mall/integral/list`, {
		params
	})
}
/**
 * @description 上架商品 buildFnGetOrPostCode
 *
 * @param {string} params.id 必填: 商品ID
 * @return Promise<OMallIntegralListingPost>
 */
export const mallIntegralListingPost = async (params?: IMallIntegralListingPost) => {
	return post<OMallIntegralListingPost>(`/mall/integral/listing`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 添加商品 buildFnGetOrPostCode
 *
 * @param {string} params.categoryId 必填: 一级分类ID
 * @param {string} params.categoryTagId 必填: 二级分类ID
 * @param {string} params.desc 必填: 商品描述信息
 * @param {any[]} params.detailImg 必填: 图片
 * @param {number} params.integralPrice 必填: 积分价格
 * @param {string} params.name 必填: 名称
 * @param {number} params.postFee 必填: 运费
 * @param {number} params.seqno 必填: 排序
 * @param {number} params.totalAmount 必填:
 * @return Promise<OMallIntegralPost>
 */
export const mallIntegralPost = async (params?: IMallIntegralPost) => {
	return post<OMallIntegralPost>(`/mall/integral`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 编辑商品 buildFnGetOrPostCode
 *
 * @param {string} params.categoryId 必填: 一级分类ID
 * @param {string} params.categoryTagId 必填: 二级分类ID
 * @param {string} params.desc 必填: 商品描述信息
 * @param {any[]} params.detailImg 必填: 图片
 * @param {string} params.id 必填: 商品ID
 * @param {number} params.integralPrice 必填: 积分价格
 * @param {string} params.name 必填: 名称
 * @param {number} params.postFee 必填: 运费
 * @param {number} params.seqno 必填: 排序
 * @param {number} params.totalAmount 必填: 库存
 * @return Promise<OMallIntegralPut>
 */
export const mallIntegralPut = async (params?: IMallIntegralPut) => {
	return put<OMallIntegralPut>(`/mall/integral`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 查询菜单列表 buildFnArrayCode
 *
 * @return Promise<OMenuListGetItem[]>
 */
export const menuListGet = async (params?: IMenuListGet) => {
	return get<OMenuListGetItem[]>(`/menu/list`, {
		params
	})
}
/**
 * @description 删除菜单 buildFnPathCode
 * @path {number} menuId 必填:
 * @return Promise<OMenuMenuIdDelete>
 */
export const menuMenuIdDelete = async (menuId: number) => {
	return del<OMenuMenuIdDelete>(`/menu/${menuId}`)
}
/**
 * @description 查询菜单详情 buildFnPathCode
 * @path {string} menuId 必填:
 * @return Promise<OMenuMenuIdGet>
 */
export const menuMenuIdGet = async (menuId: string) => {
	return get<OMenuMenuIdGet>(`/menu/${menuId}`)
}
/**
 * @description 新增菜单 buildFnGetOrPostCode
 *
 * @param {number} params.frame 可选: 是否外链 0-否 1-是
 * @param {string} params.menuName 可选: 菜单名称
 * @param {string} params.menuType 可选: 菜单类型 M-目录 C-菜单 F-接口
 * @param {number} params.orderNum 可选: 排序
 * @param {number} params.parentId 可选: 父菜单id 根目录=0
 * @param {string} params.path 可选: 地址
 * @param {string} params.perms 可选: 权限字符串
 * @param {number} params.status 可选: 菜单状态 0-正常 1-停用
 * @param {number} params.visible 可选: 显示状态 0-显示 1-隐藏
 * @return Promise<number>
 */
export const menuPost = async (params?: IMenuPost) => {
	return post<number>(`/menu`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 编辑菜单 buildFnGetOrPostCode
 *
 * @param {number} params.frame 可选: 是否外链 0-否 1-是
 * @param {number} params.menuId 必填: 菜单id
 * @param {string} params.menuName 可选: 菜单名称
 * @param {string} params.menuType 可选: 菜单类型 M-目录 C-菜单 F-接口
 * @param {number} params.orderNum 可选: 排序
 * @param {number} params.parentId 可选: 父菜单id 根目录=0
 * @param {string} params.path 可选: 地址
 * @param {string} params.perms 可选: 权限字符串
 * @param {number} params.status 可选: 菜单状态 0-正常 1-停用
 * @param {number} params.visible 可选: 显示状态 0-显示 1-隐藏
 * @return Promise<number>
 */
export const menuPut = async (params?: IMenuPut) => {
	return put<number>(`/menu`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 获取菜单信息 buildFnArrayCode
 *
 * @return Promise<OMenusGetItem[]>
 */
export const menusGet = async (params?: IMenusGet) => {
	return get<OMenusGetItem[]>(`/menus`, {
		params
	})
}
/**
 * @description 订单售后列表 buildFnArrayCode
 *
 * @param {string} params.orderId 可选: 订单ID
 * @param {string} params.orderStatus 可选: 订单状态 ""-全部 10-退款中 11-已退款 12-已拒绝
 * @param {number} params.pageNum 可选:
 * @param {number} params.pageSize 可选:
 * @return Promise<OOrderAfterSaleListGetItem[]>
 */
export const orderAfterSaleListGet = async (params?: IOrderAfterSaleListGet) => {
	return get<OOrderAfterSaleListGetItem[]>(`/order/after/sale/list`, {
		params
	})
}
/**
 * @description 获取订单聊天记录 buildFnGetOrPostCode
 *
 * @param {number} params.orderId 可选:
 * @param {string} params.pageSize 可选:
 * @param {string} params.pageNum 可选:
 * @return Promise<OOrderChatListGet>
 */
export const orderChatListGet = async (params?: IOrderChatListGet) => {
	return get<OOrderChatListGet>(`/order/chat/list`, {
		params
	})
}
/**
 * @description 删除订单评论 buildFnPathCode
 * @path {string} commentId 必填: 评论ID
 * @return Promise<OOrderCommentCommentIdDelete>
 */
export const orderCommentCommentIdDelete = async (commentId: string) => {
	return del<OOrderCommentCommentIdDelete>(`/order/comment/${commentId}`)
}
/**
 * @description 订单评论列表 buildFnArrayCode
 *
 * @param {string} params.orderId 可选: 订单ID
 * @param {number} params.pageNum 可选:
 * @param {number} params.pageSize 可选:
 * @return Promise<OOrderCommentListGetItem[]>
 */
export const orderCommentListGet = async (params?: IOrderCommentListGet) => {
	return get<OOrderCommentListGetItem[]>(`/order/comment/list`, {
		params
	})
}
/**
 * @description 发货（物流/快递） buildFnGetOrPostCode
 *
 * @param {string} params.company 必填: 快递公司名称
 * @param {string} params.orderId 必填: 订单ID
 * @param {string} params.ticket 必填: 快递单号
 * @return Promise<OOrderConfirmDeliveryPost>
 */
export const orderConfirmDeliveryPost = async (params?: IOrderConfirmDeliveryPost) => {
	return post<OOrderConfirmDeliveryPost>(`/order/confirm/delivery`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 确认退款 buildFnGetOrPostCode
 *
 * @param {string} params.deductOpposite 必填: 扣除责任方保证金 SELLER-卖家  BUYER-买家  NONE-都不扣(针对竞拍订单)
 * @param {string} params.orderId 必填:
 * @return Promise<OOrderConfirmRefundPost>
 */
export const orderConfirmRefundPost = async (params?: IOrderConfirmRefundPost) => {
	return post<OOrderConfirmRefundPost>(`/order/confirm/refund`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 订单详情 buildFnGetOrPostCode
 *
 * @param {string} params.orderId 必填: 订单ID
 * @param {number} params.afterSale 必填: 是否售后订单 1-是  0-否
 * @return Promise<OOrderDetailGet>
 */
export const orderDetailGet = async (params?: IOrderDetailGet) => {
	return get<OOrderDetailGet>(`/order/detail`, {
		params
	})
}
/**
 * @description 强制退款 卖家违规/不发货/无审核售后 强制退款并扣除卖家保证金 有售后则处理售后状态 buildFnGetOrPostCode
 *
 * @param {string} params.deductOpposite 必填: 扣除责任方保证金 SELLER-卖家  BUYER-买家  NONE-都不扣(只针对竞拍订单)
 * @param {string} params.isRefundPostFee 可选: 是否退快递费 1-退 0-不退
 * @param {string} params.orderId 必填:
 * @return Promise<OOrderForceRefundPost>
 */
export const orderForceRefundPost = async (params?: IOrderForceRefundPost) => {
	return post<OOrderForceRefundPost>(`/order/force/refund`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 订单列表 buildFnArrayCode
 *
 * @param {string} params.orderStatus 可选: 订单状态 ""-全部  0-待付款 1-已付款 2-待收货 3-待评价 4-已完成  9-已取消
 * @param {number} params.pageNum 可选:
 * @param {number} params.pageSize 可选:
 * @param {number} params.goodsType 可选: 商品类型 0-一口价 1-竞拍商品
 * @param {string} params.keyword 可选: 订单号，用户编号
 * @return Promise<OOrderListGetItem[]>
 */
export const orderListGet = async (params?: IOrderListGet) => {
	return get<OOrderListGetItem[]>(`/order/list`, {
		params
	})
}
/**
 * @description 拒绝退款 buildFnGetOrPostCode
 *
 * @param {string} params.orderId 必填:
 * @return Promise<OOrderRefusalRefundPost>
 */
export const orderRefusalRefundPost = async (params?: IOrderRefusalRefundPost) => {
	return post<OOrderRefusalRefundPost>(`/order/refusal/refund`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 物流/快递信息 buildFnGetOrPostCode
 *
 * @param {string} params.orderId 必填: 订单ID
 * @return Promise<OOrderTicketListGet>
 */
export const orderTicketListGet = async (params?: IOrderTicketListGet) => {
	return get<OOrderTicketListGet>(`/order/ticket/list`, {
		params
	})
}
/**
 * @description 获取商城商品分类列表 buildFnGetOrPostCode
 *
 * @return Promise<OPublishMallGoodsCategoryListGet>
 */
export const publishMallGoodsCategoryListGet = async (params?: IPublishMallGoodsCategoryListGet) => {
	return get<OPublishMallGoodsCategoryListGet>(`/publish/mall/goods/category/list`, {
		params
	})
}
/**
 * @description 获取商城商品分类详情 buildFnPathCode
 * @path {string} id 必填:
 * @return Promise<OPublishMallGoodsCategoryListIdGet>
 */
export const publishMallGoodsCategoryListIdGet = async (id: string) => {
	return get<OPublishMallGoodsCategoryListIdGet>(`/publish/mall/goods/category/list/${id}`)
}
/**
 * @description 获取商城积分分类列表 buildFnGetOrPostCode
 *
 * @return Promise<OPublishMallIntegralGoodsCategoryListGet>
 */
export const publishMallIntegralGoodsCategoryListGet = async (params?: IPublishMallIntegralGoodsCategoryListGet) => {
	return get<OPublishMallIntegralGoodsCategoryListGet>(`/publish/mall/integral/goods/category/list`, {
		params
	})
}
/**
 * @description 获取商城积分分类详情 buildFnPathCode
 * @path {string} id 必填:
 * @return Promise<OPublishMallIntegralGoodsCategoryListIdGet>
 */
export const publishMallIntegralGoodsCategoryListIdGet = async (id: string) => {
	return get<OPublishMallIntegralGoodsCategoryListIdGet>(`/publish/mall/integral/goods/category/list/${id}`)
}
/**
 * @description 获取商铺商品分类详情 buildFnPathCode
 * @path {string} id 必填:
 * @return Promise<OPublishShopGoodsCategoryIdGet>
 */
export const publishShopGoodsCategoryIdGet = async (id: string) => {
	return get<OPublishShopGoodsCategoryIdGet>(`/publish/shop/goods/category/${id}`)
}
/**
 * @description 获取商铺商品分类列表 buildFnArrayCode
 *
 * @return Promise<OPublishShopGoodsCategoryListGetItem[]>
 */
export const publishShopGoodsCategoryListGet = async (params?: IPublishShopGoodsCategoryListGet) => {
	return get<OPublishShopGoodsCategoryListGetItem[]>(`/publish/shop/goods/category/list`, {
		params
	})
}
/**
 * @description 上传文件 buildFnFileCode
 *
 * @param {file} params.files 可选:
 * @return Promise<OPublishUploadFilePost>
 */
export const publishUploadFilePost = async (params?: IPublishUploadFilePostFormData) => {
	return post<OPublishUploadFilePost>(`/publish/upload/file`, {
		params
	})
}
/**
 * @description 查询所有可用角色 buildFnArrayCode
 *
 * @return Promise<ORoleListAllGetItem[]>
 */
export const roleListAllGet = async (params?: IRoleListAllGet) => {
	return get<ORoleListAllGetItem[]>(`/role/list/all`, {
		params
	})
}
/**
 * @description 查询角色列表 buildFnArrayCode
 *
 * @param {number} params.pageNum 可选:
 * @param {number} params.pageSize 可选:
 * @param {string} params.roleName 可选: 角色名称
 * @param {number} params.status 可选: 角色状态 0-正常 1-停用
 * @return Promise<ORoleListGetItem[]>
 */
export const roleListGet = async (params?: IRoleListGet) => {
	return get<ORoleListGetItem[]>(`/role/list`, {
		params
	})
}
/**
 * @description 修改角色权限 buildFnGetOrPostCode
 *
 * @param {any[]} params.menuIds 必填:
 * @param {number} params.roleId 必填:
 * @return Promise<number>
 */
export const rolePermsPut = async (params?: IRolePermsPut) => {
	return put<number>(`/role/perms`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 新增角色 buildFnGetOrPostCode
 *
 * @param {any[]} params.menuIds 可选: 菜单id列表
 * @param {string} params.remark 可选: 备注
 * @param {string} params.roleKey 必填: 角色key
 * @param {string} params.roleName 必填: 角色名称
 * @param {number} params.roleSort 可选: 排序
 * @param {number} params.status 必填: 角色状态 0-正常 1-停用
 * @return Promise<ORolePost>
 */
export const rolePost = async (params?: IRolePost) => {
	return post<ORolePost>(`/role`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 编辑角色 buildFnGetOrPostCode
 *
 * @param {string} params.remark 可选: 备注
 * @param {number} params.roleId 必填: 角色ID
 * @param {string} params.roleKey 必填: 角色key
 * @param {string} params.roleName 必填: 角色名称
 * @param {number} params.roleSort 可选: 排序
 * @param {number} params.status 必填: 角色状态 0-正常 1-停用
 * @return Promise<number>
 */
export const rolePut = async (params?: IRolePut) => {
	return put<number>(`/role`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 删除角色 buildFnPathCode
 * @path {number} roleId 必填:
 * @return Promise<ORoleRoleIdDelete>
 */
export const roleRoleIdDelete = async (roleId: number) => {
	return del<ORoleRoleIdDelete>(`/role/${roleId}`)
}
/**
 * @description 查询角色详情 buildFnPathCode
 * @path {number} roleId 必填:
 * @return Promise<ORoleRoleIdGet>
 */
export const roleRoleIdGet = async (roleId: number) => {
	return get<ORoleRoleIdGet>(`/role/${roleId}`)
}
/**
 * @description 删除协议 buildFnPathCode
 * @path {number} id 必填:
 * @return Promise<ORuleAgreementIdDelete>
 */
export const ruleAgreementIdDelete = async (id: number) => {
	return del<ORuleAgreementIdDelete>(`/rule/agreement/${id}`)
}
/**
 * @description 获取协议详情 buildFnPathCode
 * @path {number} id 必填:
 * @return Promise<ORuleAgreementIdGet>
 */
export const ruleAgreementIdGet = async (id: number) => {
	return get<ORuleAgreementIdGet>(`/rule/agreement/${id}`)
}
/**
 * @description 获取协议列表 buildFnGetOrPostCode
 *
 * @param {string} params.title 可选:
 * @param {number} params.pageNum 可选:
 * @param {number} params.pageSize 可选:
 * @return Promise<ORuleAgreementListGet>
 */
export const ruleAgreementListGet = async (params?: IRuleAgreementListGet) => {
	return get<ORuleAgreementListGet>(`/rule/agreement/list`, {
		params
	})
}
/**
 * @description 删除帮助 buildFnPathCode
 * @path {number} id 必填:
 * @return Promise<ORuleHelperIdDelete>
 */
export const ruleHelperIdDelete = async (id: number) => {
	return del<ORuleHelperIdDelete>(`/rule/helper/${id}`)
}
/**
 * @description 获取帮助中心详情 buildFnPathCode
 * @path {number} id 必填:
 * @return Promise<ORuleHelperIdGet>
 */
export const ruleHelperIdGet = async (id: number) => {
	return get<ORuleHelperIdGet>(`/rule/helper/${id}`)
}
/**
 * @description 获取帮助中心列表 buildFnGetOrPostCode
 *
 * @param {string} params.title 可选:
 * @param {number} params.pageNum 可选:
 * @param {number} params.pageSize 可选:
 * @return Promise<ORuleHelperListGet>
 */
export const ruleHelperListGet = async (params?: IRuleHelperListGet) => {
	return get<ORuleHelperListGet>(`/rule/helper/list`, {
		params
	})
}
/**
 * @description 添加帮助 buildFnGetOrPostCode
 *
 * @param {string} params.content 必填: 内容
 * @param {string} params.key 必填: key值
 * @param {number} params.status 必填: 状态 0-启用 1-禁用
 * @param {string} params.title 必填: 标题
 * @return Promise<ORuleHelperPost>
 */
export const ruleHelperPost = async (params?: IRuleHelperPost) => {
	return post<ORuleHelperPost>(`/rule/helper`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 修改帮助 buildFnGetOrPostCode
 *
 * @param {string} params.content 必填: 内容
 * @param {number} params.id 必填: id
 * @param {number} params.status 必填: 状态 0-启用 1-禁用
 * @param {string} params.title 必填: 标题
 * @return Promise<ORuleHelperPut>
 */
export const ruleHelperPut = async (params?: IRuleHelperPut) => {
	return put<ORuleHelperPut>(`/rule/helper`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 审核商品 buildFnGetOrPostCode
 *
 * @param {string} params.auditReason 可选: 审核原因
 * @param {string} params.id 必填: 商品ID
 * @param {number} params.status 必填: 1-通过 2-拒绝
 * @return Promise<string>
 */
export const shopGoodsAuditPost = async (params?: IShopGoodsAuditPost) => {
	return post<string>(`/shop/goods/audit`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 删除一级分类 buildFnPathCode
 * @path {string} id 必填:
 * @return Promise<number>
 */
export const shopGoodsCategoryIdDelete = async (id: string) => {
	return del<number>(`/shop/goods/category/${id}`)
}
/**
 * @description 一级分类详情 buildFnPathCode
 * @path {string} id 必填:
 * @return Promise<OShopGoodsCategoryIdGet>
 */
export const shopGoodsCategoryIdGet = async (id: string) => {
	return get<OShopGoodsCategoryIdGet>(`/shop/goods/category/${id}`)
}
/**
 * @description 一级分类列表 buildFnArrayCode
 *
 * @return Promise<OShopGoodsCategoryListGetItem[]>
 */
export const shopGoodsCategoryListGet = async (params?: IShopGoodsCategoryListGet) => {
	return get<OShopGoodsCategoryListGetItem[]>(`/shop/goods/category/list`, {
		params
	})
}
/**
 * @description 添加一级分类 buildFnGetOrPostCode
 *
 * @param {string} params.desc 可选: 描述
 * @param {string} params.headImg 必填: 图像
 * @param {string} params.name 必填: 名称
 * @param {number} params.seqno 可选: 排序
 * @param {number} params.status 必填: 状态 0 启用 1 停用
 * @return Promise<number>
 */
export const shopGoodsCategoryPost = async (params?: IShopGoodsCategoryPost) => {
	return post<number>(`/shop/goods/category`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 编辑一级分类 buildFnGetOrPostCode
 *
 * @param {string} params.desc 可选: 描述
 * @param {string} params.headImg 必填: 图像
 * @param {string} params.id 必填: 主键ID
 * @param {string} params.name 必填: 名称
 * @param {number} params.seqno 可选: 排序
 * @param {number} params.status 必填: 状态 0 启用 1 停用
 * @return Promise<number>
 */
export const shopGoodsCategoryPut = async (params?: IShopGoodsCategoryPut) => {
	return put<number>(`/shop/goods/category`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 删除二级分类 buildFnPathCode
 * @path {string} id 必填:
 * @return Promise<number>
 */
export const shopGoodsCategoryTagIdDelete = async (id: string) => {
	return del<number>(`/shop/goods/category/tag/${id}`)
}
/**
 * @description 添加二级分类 buildFnGetOrPostCode
 *
 * @param {string} params.categoryId 必填: 一级分类ID
 * @param {string} params.desc 可选: 描述
 * @param {string} params.headImg 必填: 图像
 * @param {string} params.name 必填: 名称
 * @param {number} params.seqno 可选: 排序
 * @param {number} params.status 必填: 状态 0 启用 1 停用
 * @return Promise<number>
 */
export const shopGoodsCategoryTagPost = async (params?: IShopGoodsCategoryTagPost) => {
	return post<number>(`/shop/goods/category/tag`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 编辑二级分类 buildFnGetOrPostCode
 *
 * @param {string} params.desc 可选: 描述
 * @param {string} params.headImg 必填: 图像
 * @param {string} params.id 必填: 主键ID
 * @param {string} params.name 必填: 名称
 * @param {number} params.seqno 可选: 排序
 * @param {number} params.status 必填: 状态 0 启用 1 停用
 * @return Promise<number>
 */
export const shopGoodsCategoryTagPut = async (params?: IShopGoodsCategoryTagPut) => {
	return put<number>(`/shop/goods/category/tag`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 商品详情 buildFnPathCode
 * @path {string} id 必填: 商品ID
 * @return Promise<OShopGoodsIdGet>
 */
export const shopGoodsIdGet = async (id: string) => {
	return get<OShopGoodsIdGet>(`/shop/goods/${id}`)
}
/**
 * @description 获取商品列表 buildFnArrayCode
 *
 * @param {string} params.categoryId 可选: 一级分类ID
 * @param {string} params.categoryTagId 可选: 二级分类ID
 * @param {string} params.name 可选: 标题
 * @param {number} params.pageNum 可选:
 * @param {number} params.pageSize 可选:
 * @param {number} params.status 可选: 不传-全部 0-待上架 1-竞拍中/出售中 2-已结束 3-已出售 9-已下架
 * @param {number} params.goodsType 可选: 商品类别 0-一口价 1-竞拍
 * @param {number} params.auditStatus 可选: 审核状态  0-待审核 1-审核通过 2-审核未通过
 * @return Promise<OShopGoodsListGetItem[]>
 */
export const shopGoodsListGet = async (params?: IShopGoodsListGet) => {
	return get<OShopGoodsListGetItem[]>(`/shop/goods/list`, {
		params
	})
}
/**
 * @description 商品显示状态 buildFnGetOrPostCode
 *
 * @param {string} params.goodsId 必填:
 * @param {number} params.show 必填: 是否显示 1-显示 0-隐藏
 * @return Promise<number>
 */
export const shopGoodsShowPost = async (params?: IShopGoodsShowPost) => {
	return post<number>(`/shop/goods/show`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}


/**
 * @description 获取系统消息详情 buildFnGetOrPostCode
 *
 * @param {number} params.id 必填:
 * @return Promise<OSystemMessageDetailGet>
 */
export const systemMessageDetailGet = async (params?: ISystemMessageDetailGet) => {
	return get<OSystemMessageDetailGet>(`/system/message/detail`, {
		params
	})
}
/**
 * @description 删除系统消息 buildFnPathCode
 * @path {number} id 必填:
 * @return Promise<OSystemMessageIdDelete>
 */
export const systemMessageIdDelete = async (id: number) => {
	return del<OSystemMessageIdDelete>(`/system/message/${id}`)
}
/**
 * @description 获取系统消息列表 buildFnArrayCode
 *
 * @param {string} params.keyword 可选:
 * @param {string} params.groupType 可选: all-全部 single-单个
 * @param {number} params.pageNum 可选:
 * @param {number} params.pageSize 可选:
 * @return Promise<OSystemMessageListGetItem[]>
 */
export const systemMessageListGet = async (params?: ISystemMessageListGet) => {
	return get<OSystemMessageListGetItem[]>(`/system/message/list`, {
		params
	})
}
/**
 * @description 添加系统消息 buildFnGetOrPostCode
 *
 * @param {string} params.content 必填:
 * @param {string} params.groupType 必填: all-全部 single-单个
 * @param {string} params.title 必填:
 * @param {any[]} params.toUserNos 可选: 单个时 用户编号
 * @return Promise<number>
 */
export const systemMessagePost = async (params?: ISystemMessagePost) => {
	return post<number>(`/system/message`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 修改系统消息 buildFnGetOrPostCode
 *
 * @param {string} params.content 必填:
 * @param {number} params.id 必填:
 * @param {string} params.title 必填:
 * @param {any[]} params.toUserNos 可选: 单个时 用户编号
 * @return Promise<OSystemMessagePut>
 */
export const systemMessagePut = async (params?: ISystemMessagePut) => {
	return put<OSystemMessagePut>(`/system/message`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 查询管理员列表 buildFnArrayCode
 *
 * @param {string} params.keyword 可选: phone ，email，name，userNo
 * @param {number} params.pageNum 可选:
 * @param {number} params.pageSize 可选:
 * @return Promise<OSysuserListGetItem[]>
 */
export const sysuserListGet = async (params?: ISysuserListGet) => {
	return get<OSysuserListGetItem[]>(`/sysuser/list`, {
		params
	})
}
/**
 * @description 新增管理员 buildFnGetOrPostCode
 *
 * @param {string} params.avatar 必填: 图像
 * @param {string} params.email 必填: 邮箱
 * @param {string} params.password 必填: 密码
 * @param {string} params.phone 可选: 手机号
 * @param {string} params.remark 可选: 备注
 * @param {any[]} params.roleIdList 可选: 角色id列表列表
 * @param {number} params.status 必填: 账号状态 0-正常 1-停用
 * @param {string} params.userName 必填: 用户名称
 * @return Promise<number>
 */
export const sysuserPost = async (params?: ISysuserPost) => {
	return post<number>(`/sysuser`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 编辑管理员 buildFnGetOrPostCode
 *
 * @param {string} params.avatar 必填: 图像
 * @param {string} params.email 必填: 邮箱
 * @param {string} params.password 必填: 密码
 * @param {string} params.phone 可选: 手机号
 * @param {string} params.remark 可选: 备注
 * @param {any[]} params.roleIdList 可选: 角色id列表列表
 * @param {number} params.status 必填: 账号状态 0-正常 1-停用
 * @param {number} params.userId 必填: 用户ID
 * @param {string} params.userName 必填: 用户名称
 * @return Promise<number>
 */
export const sysuserPut = async (params?: ISysuserPut) => {
	return put<number>(`/sysuser`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 重置密码 buildFnGetOrPostCode
 *
 * @param {string} params.password 必填: 密码
 * @param {number} params.userId 必填: 用户ID
 * @return Promise<number>
 */
export const sysuserResetPwdPut = async (params?: ISysuserResetPwdPut) => {
	return put<number>(`/sysuser/resetPwd`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 删除管理员 buildFnPathCode
 * @path {number} userId 必填:
 * @return Promise<string>
 */
export const sysuserUserIdDelete = async (userId: number) => {
	return del<string>(`/sysuser/${userId}`)
}
/**
 * @description 查询用户详情 buildFnPathCode
 * @path {number} userId 必填:
 * @return Promise<OSysuserUserIdGet>
 */
export const sysuserUserIdGet = async (userId: number) => {
	return get<OSysuserUserIdGet>(`/sysuser/${userId}`)
}
/**
 * @description 修改密码 buildFnGetOrPostCode
 *
 * @param {string} params.newPassword 必填: 新的密码
 * @param {string} params.oldPassword 必填: 旧的密码
 * @return Promise<OUpdatePwdPut>
 */
export const updatePwdPut = async (params?: IUpdatePwdPut) => {
	return put<OUpdatePwdPut>(`/updatePwd`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 设置发布审核开关 buildFnGetOrPostCode
 *
 * @param {number} params.auditSwitch 必填: 审核开关 1-需要审核 0-不需要审核
 * @param {string} params.userId 必填: 用户ID
 * @return Promise<number>
 */
export const userAuditSwitchPost = async (params?: IUserAuditSwitchPost) => {
	return post<number>(`/user/audit/switch`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 获取用户审核认证详情 buildFnPathCode
 * @path {string} id 必填:
 * @return Promise<OUserAuthAuditIdGet>
 */
export const userAuthAuditIdGet = async (id: string) => {
	return get<OUserAuthAuditIdGet>(`/user/auth/audit/${id}`)
}
/**
 * @description 获取用户审核认证列表 buildFnArrayCode
 *
 * @param {number} params.type 可选: 类型 0-身份证 1-繁殖证
 * @param {number} params.status 可选: 状态 0-未审核 1-审核通过 2-审核不通过
 * @param {string} params.phone 可选: 手机号
 * @param {number} params.pageNum 可选:
 * @param {number} params.pageSize 可选:
 * @return Promise<OUserAuthAuditListGetItem[]>
 */
export const userAuthAuditListGet = async (params?: IUserAuthAuditListGet) => {
	return get<OUserAuthAuditListGetItem[]>(`/user/auth/audit/list`, {
		params
	})
}
/**
 * @description 认证审核 buildFnGetOrPostCode
 *
 * @param {string} params.auditReason 可选: 审核原因
 * @param {number} params.id 必填: 审核ID
 * @param {number} params.status 必填: 1-审核通过 2-审核不通过
 * @return Promise<number>
 */
export const userAuthAuditPost = async (params?: IUserAuthAuditPost) => {
	return post<number>(`/user/auth/audit`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 作废用户认证 buildFnGetOrPostCode
 *
 * @param {number} params.id 必填: 审核ID
 * @return Promise<OUserAuthRepealPut>
 */
export const userAuthRepealPut = async (params?: IUserAuthRepealPut) => {
	return put<OUserAuthRepealPut>(`/user/auth/repeal`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 恢复用户认证 buildFnGetOrPostCode
 *
 * @param {number} params.id 必填: 审核ID
 * @return Promise<OUserAuthUnRepealPut>
 */
export const userAuthUnRepealPut = async (params?: IUserAuthUnRepealPut) => {
	return put<OUserAuthUnRepealPut>(`/user/auth/unRepeal`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 获取用户资金详情 buildFnArrayCode
 *
 * @param {string} params.userId 必填:
 * @param {string} params.tranType 可选: out：支出 in：收入
 * @param {number} params.pageNum 可选:
 * @param {number} params.pageSize 可选:
 * @return Promise<OUserBalanceDetailGetItem[]>
 */
export const userBalanceDetailGet = async (params?: IUserBalanceDetailGet) => {
	return get<OUserBalanceDetailGetItem[]>(`/user/balance/detail`, {
		params
	})
}
/**
 * @description 获取用户资金 buildFnGetOrPostCode
 *
 * @param {string} params.userId 必填:
 * @return Promise<OUserBalanceGet>
 */
export const userBalanceGet = async (params?: IUserBalanceGet) => {
	return get<OUserBalanceGet>(`/user/balance`, {
		params
	})
}
/**
 * @description 获取用户详情 buildFnPathCode
 * @path {string} id 必填: 用户ID
 * @return Promise<OUserIdGet>
 */
export const userIdGet = async (id: string) => {
	return get<OUserIdGet>(`/user/${id}`)
}
/**
 * @description 获取用户列表 buildFnArrayCode
 *
 * @param {string} params.keyword 可选: 手机，邮箱，昵称，编号 搜索
 * @param {number} params.pageNum 可选:
 * @param {number} params.pageSize 可选:
 * @return Promise<OUserListGetItem[]>
 */
export const userListGet = async (params?: IUserListGet) => {
	return get<OUserListGetItem[]>(`/user/list`, {
		params
	})
}
/**
 * @description 添加用户保证金 buildFnGetOrPostCode
 *
 * @param {number} params.amount 必填:
 * @param {string} params.remark 可选:
 * @param {string} params.userId 必填:
 * @return Promise<OUserMarginPost>
 */
export const userMarginPost = async (params?: IUserMarginPost) => {
	return post<OUserMarginPost>(`/user/margin`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 修改用户状态 buildFnGetOrPostCode
 *
 * @param {string} params.action 必填: status,prohibitPublish,prohibitTrade 三选一
 * @param {number} params.status 必填: status 禁用用户： 0 启用 1禁用 prohibitPublish 禁止发布：0-未禁止 1-禁止 prohibitTrade 禁止交易：0-未禁止 1-禁止
 * @param {string} params.userId 必填: 用户ID
 * @return Promise<number>
 */
export const userUpdateStatusPost = async (params?: IUserUpdateStatusPost) => {
	return post<number>(`/user/update/status`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 删除宠物百科 buildFnPathCode
 * @path {number} id 必填:
 * @return Promise<OWikiIdDelete>
 */
export const wikiIdDelete = async (id: number) => {
	return del<OWikiIdDelete>(`/wiki/${id}`)
}
/**
 * @description 获取宠物百科列表 buildFnGetOrPostCode
 *
 * @param {string} params.title 可选:
 * @param {number} params.pageNum 可选:
 * @param {number} params.pageSize 可选:
 * @return Promise<OWikiListGet>
 */
export const wikiListGet = async (params?: IWikiListGet) => {
	return get<OWikiListGet>(`/wiki/list`, {
		params
	})
}
/**
 * @description 获取宠物百科详情 buildFnPathCode
 * @path {number} id 必填:
 * @return Promise<OWikiListIdGet>
 */
export const wikiListIdGet = async (id: number) => {
	return get<OWikiListIdGet>(`/wiki/list/${id}`)
}
/**
 * @description 添加宠物百科 buildFnGetOrPostCode
 *
 * @param {string} params.area 可选: 地区
 * @param {string} params.categoryId 必填: 一级分类ID
 * @param {string} params.categoryTagId 必填: 二级分类ID
 * @param {string} params.content 必填: 内容
 * @param {string} params.headImg 必填: 图像
 * @param {string} params.publishTime 可选: 发布时间
 * @param {number} params.status 必填: 状态 0-启用 1-停用
 * @param {string} params.title 必填: 标题
 * @return Promise<OWikiPost>
 */
export const wikiPost = async (params?: IWikiPost) => {
	return post<OWikiPost>(`/wiki`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 修改宠物百科 buildFnGetOrPostCode
 *
 * @param {string} params.area 可选: 地区
 * @param {string} params.categoryId 必填: 一级分类ID
 * @param {string} params.categoryTagId 必填: 二级分类ID
 * @param {string} params.content 必填: 内容
 * @param {string} params.headImg 必填: 图像
 * @param {number} params.id 必填: 文章ID
 * @param {string} params.publishTime 可选: 发布时间
 * @param {number} params.status 必填: 状态 0-启用 1-停用
 * @param {string} params.title 必填: 标题
 * @return Promise<OWikiPut>
 */
export const wikiPut = async (params?: IWikiPut) => {
	return put<OWikiPut>(`/wiki`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 审核提现 buildFnGetOrPostCode
 *
 * @param {string} params.auditReason 可选: 审核原因
 * @param {number} params.status 必填: 状态 0-待审核 1-审核通过 2-审核不通过
 * @param {string} params.withdrawId 必填: 审核ID
 * @return Promise<OWithdrawAuditPost>
 */
export const withdrawAuditPost = async (params?: IWithdrawAuditPost) => {
	return post<OWithdrawAuditPost>(`/withdraw/audit`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}
/**
 * @description 获取提现列表 buildFnArrayCode
 *
 * @param {string} params.wType 可选: 提现到 wechat-微信 alipay-支付宝 bank-银行卡
 * @param {string} params.userId 可选: 用户ID
 * @param {string} params.userNo 可选: 用户编号
 * @param {number} params.status 可选: 状态 0-待审核 1-审核通过 2-审核不通过
 * @param {string} params.userPhone 可选: 用户手机号
 * @param {string} params.userEmail 可选: 用户邮箱
 * @param {string} params.userName 可选: 用户名
 * @param {number} params.pageNum 可选:
 * @param {number} params.pageSize 可选:
 * @return Promise<OWithdrawListGetItem[]>
 */
export const withdrawListGet = async (params?: IWithdrawListGet) => {
	return get<OWithdrawListGetItem[]>(`/withdraw/list`, {
		params
	})
}
/**
 * @description 获取提现详情 buildFnPathCode
 * @path {string} id 必填:
 * @return Promise<OWithdrawListIdGet>
 */
export const withdrawListIdGet = async (id: string) => {
	return get<OWithdrawListIdGet>(`/withdraw/list/${id}`)
}
/**
 * @description 添加审核转账记录-图片 buildFnGetOrPostCode
 *
 * @param {any[]} params.transferImage 必填:
 * @param {string} params.withdrawId 必填: 审核ID
 * @return Promise<OWithdrawTransferImagePost>
 */
export const withdrawTransferImagePost = async (params?: IWithdrawTransferImagePost) => {
	return post<OWithdrawTransferImagePost>(`/withdraw/transferImage`, {
		params,
		headers: { 'Content-Type': 'application/json'}
	})
}



export const tenantPost = async (params?: ITenantPost) => {
    return post<number>(`/tenant`, {
        params,
        headers: { 'Content-Type': 'application/json'}
    })
}

export const tenantPut = async (params?: ITenantPost) => {
    return put<number>(`/tenant`, {
        params,
        headers: { 'Content-Type': 'application/json'}
    })
}


export const tenantListGet = async (params?: ITenantListGet) => {
    return get<OTenantListGetItem[]>(`/tenant/list`, {
        params
    })
}


export const tenantIdGet = async (id: string) => {
    return get<OTenantUserIdGet>(`/tenant/${id}`)
}


export const productPost = async (params?: IProductPost) => {
    return post<number>(`/product`, {
        params,
        headers: { 'Content-Type': 'application/json'}
    })
}


export const productPut = async (params?: ITenantPut) => {
    return put<number>(`/product`, {
        params,
        headers: { 'Content-Type': 'application/json'}
    })
}


export const productListGet = async (params?: IProductListGet) => {
    return get<OProductListGetItem[]>(`/product/list`, {
        params
    })
}

export const productIdGet = async (id: string) => {
    return get<OProductIdGet>(`/product/${id}`)
}


export const productIdDelete = async (productId: string) => {
    return del<string>(`/product/${productId}`)
}

export const productStatusPut = async (params?: IProductStatusPut) => {
    return put<number>(`/product/updateStatus`, {
        params,
        headers: { 'Content-Type': 'application/json'}
    })
}


export const getComplaintList = async (params?: IComplaintListGet) => {
    return get<OComplaintListGetItem[]>(`/complaint/list`, {
        params
    })
}

export const processComplaintPut = async (params?: IProcessComplaintPut) => {
    return post<number>(`/complaint/process`, {
        params,
        headers: { 'Content-Type': 'application/json'}
    })
}

export const sysParamPost = async (params?: ISysParamPost) => {
    return post<number>(`/sys/param`, {
        params,
        headers: { 'Content-Type': 'application/json'}
    })
}

/**
 * @description 获取系统参数 buildFnGetOrPostCode
 *
 * @return Promise<OSysParamGet>
 */
export const sysParamGet = async (params?: ISysParamGet) => {
    return get<OSysParamGet>(`/sys/param`, {
        params
    })
}

export const productApplyListGet = async (params?: IProductApplyListGet) => {
    return get<OProductApplyListGetItem[]>(`/productApply/list`, {
        params
    })
}

export const productApplyImportantLevelPut = async (params?: IProductApplyImportantLevelPut) => {
    return put<number>(`/productApply/importantLevel`, {
        params,
        headers: { 'Content-Type': 'application/json'}
    })
}
